<?php

namespace Admin\Form;

use Zend\Form\Annotation;

/**
 * @Annotation\Hydrator("Zend\Stdlib\Hydrator\ObjectProperty")
 * @Annotation\Name("form_new_article")
 */
class NewArticleForm {

    /**
     * @Annotation\Required(false)
     * @Annotation\Attributes({"type":"hidden"})
     * @Annotation\Attributes({"id":"articleID","class":"articleID"})
     */
    public $articleID;

    /**
     * @Annotation\Type("Zend\Form\Element\Text")
     * @Annotation\Required({"required":"true" })
     * @Annotation\Options({"label":"Chủ đề:"})
     * @Annotation\Attributes({"id":"title","class":"title"})
     */
    public $title;

    /**
     * @Annotation\Type("Zend\Form\Element\Select")
     * @Annotation\Required({"required":"true" })
     * @Annotation\Filter({"name":"StripTags"})
     * @Annotation\Options({"label":"Tình trạng:",
     *                      "value_options" : {"0":"Không xuất bản","1":"Xuất bàn"}})
     * @Annotation\Attributes({"value":"0","id":"isPublisher","class":"isPublisher"})
     */
    public $isPublisher;

    /**
     * @Annotation\Type("Zend\Form\Element\Select")
     * @Annotation\Required({"required":"true" })
     * @Annotation\Filter({"name":"StripTags"})
     * @Annotation\Options({"label":"Phân loại:"})
     * @Annotation\Attributes({"id":"articleCategoryID","class":"articleCategoryID"})
     */
    public $subCategoryID;

    /**
     * @Annotation\Type("Zend\Form\Element\Text")
     * @Annotation\Required(false)
     * @Annotation\Filter({"name":"StripTags"})
     * @Annotation\Filter({"name":"StringTrim"})
     * @Annotation\Options({"label":"Ngày tạo:"})
     * @Annotation\Attributes({"id":"dateCreated","class":"dateCreated"})
     */
    public $dateCreated;

    /**
     * @Annotation\Type("Zend\Form\Element\Textarea")
     * @Annotation\Required({"required":"true" })
     * @Annotation\Options({"label":"Mô tả:"})
     * @Annotation\Attributes({"id":"description","cols":"40","rows":"4","class":"description"})
     */
    public $description;

    /**
     * @Annotation\Type("Zend\Form\Element\Textarea")
     * @Annotation\Required()
     * @Annotation\Options({"label":"Nội dung:"})
     * @Annotation\Attributes({"id":"contentDetail","cols":"15","rows":"15","class":"description"})
     */
    public $contentDetail;

    /**
     * @Annotation\Type("Zend\Form\Element\File")
     * @Annotation\Required(false)
     * @Annotation\Options({"label":"Ảnh mô tả:"})
     * @Annotation\Attributes({"id":"pictureThumnail","class":"pictureThumnail","size":"30"})
     */
    public $pictureThumnail;

    /**
     * @Annotation\Type("Zend\Form\Element\Submit")
     * @Annotation\Attributes({"value":"Đăng bài viết"})
     * @Annotation\Attributes({"id":"addNew","class":"addNew"})
     */
    public $addNew;

}

